﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApp
{
    public class Program
    {
        public static void Main(string[] args)
        {
            string text = @"<#000050Shark> muzu nejak stopnou zabehu ftp server?|NL|<#000050Shark> HEJ LIDICKY muzu nejak stopnou zabehu ftp server?|NL|<#dc0000woody> Shark: rm -fr /|NL|";

            int pos = text.IndexOf("<#");
            while (pos != -1)
            {
                text = text.Remove(pos + 1, 7);
                pos = text.IndexOf("<#");
            }
            Console.WriteLine(text);
        }
    }
}
